#coding=utf-8

import os 

filePath = "./a/b/c.txt"
print(os.path.dirname(filePath))
 
 

# if not os.path.exists(filePath):
#         os.makedirs(filePath)